﻿using System;
using GdNet.Core.Dto;
using GdNet.WebFramework.Domain.ContentManagement;

namespace GdNet.WebFramework.Modules.ContentManagement.Dtos
{
    public sealed class ContentPartDto : AbstractEntityWithModificationDto<ContentPart, Guid>
    {
        public string Name
        {
            get;
            set;
        }

        public string Details
        {
            get;
            set;
        }

        public int Position
        {
            get;
            protected set;
        }

        public ContentPartDto(ContentPart part)
            : base(part)
        {
            this.Name = part.Name;
            this.Details = part.Details;
            this.Position = part.Position;
        }
    }
}
